package org.example.apply.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

import com.bw.itext.pdf.annotation.PdfValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author lyk
 * @since 2022-10-11
 */
@Data
@TableName("month_apply")
public class Apply implements Serializable {

    private static final long serialVersionUID = 1L;

    @PdfValue(colName = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer type;

    @PdfValue(colName = "合同标题")
    private String title;

    @PdfValue(colName = "合同内容")
    private String reason;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date starttime;


//    @PdfValue(colName = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime;

    private String creator;
//    @PdfValue(colName = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date created;


    private String remark;
    @PdfValue(colName = "合同金额")
    @TableField(value = "day")
    private Integer money;

    private int status;

    private String taskid;
    private Integer userId;

    @TableField(exist = false)
    private Integer payStatus = 1;
}
